/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.note.dao;

import com.thinkgem.jeesite.common.persistence.CrudDao;
import com.thinkgem.jeesite.common.persistence.annotation.MyBatisDao;
import com.thinkgem.jeesite.modules.note.entity.Note;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 笔记增删改查DAO接口
 * @author liyutg
 * @version 2017-07-26
 */


@MyBatisDao
public interface NoteDao extends CrudDao<Note> {
	public String search(@Param("title") String title,@Param("userId") String userId);

    public String getNoteId1(@Param("userId") String userId);

    public String getUserId(@Param("noteId") String noteId);

    public void insertNote1(@Param("noteType") String noteType,
                           @Param("noteTimeCreate") String noteTimeCreate,
                           @Param("noteTimeUpdate") String noteTimeUpdate,
                           @Param("noteTitle") String noteTitle,
                           @Param("noteText") String noteText,
                           @Param("noteUserId") String noteUserId);

    public void updateNote(@Param("userId") String userId,@Param("noteId") String noteId,
                             @Param("title") String title, @Param("text") String text,
                             @Param("noteTimeUpdate") String noteTimeUpdate);

    public void updateNoteType(@Param("type") String type,@Param("userId") String userId,@Param("noteId") String noteId);

    public List<Note> noteList(@Param("userId") String userId,@Param("type") String type,@Param("style") String style);

    public void deleteNote(@Param("type") String type,@Param("content") String content,@Param("userId") String userId);

    public Note getNote(@Param("noteId") String noteId);
}